Use system googletest
authorShengjing Zhu <zhsj@debian.org>
Sun, 28 Jul 2024 23:44:27 +0000 (19:44 -0400)
committerBoyuan Yang <byang@debian.org>
Sun, 28 Sep 2025 23:36:20 +0000 (19:36 -0400)
Forwarded: not-needed
Last-Update: 2024-07-28

Gbp-Pq: Name 0004-Use-system-googletest.patch

CMakeLists.txt

index 2f2776cabe44de5416c7fcd8dd8d4ba5419ac739..25abb7dadc8b84d63c0c96401d3fbb430c3a05e4 100644 (file)
@@ -231,6 +231,8 @@ add_subdirectory(test)
 if (ENABLE_GTEST)
   if(NOT USE_SYSTEM_GTEST)
     add_subdirectory(deps/googletest-1.15.0)
+  else()
+    add_subdirectory(/usr/src/googletest/googletest ${CMAKE_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL)
   endif()
   enable_testing()
 endif()